#ifndef FLAG_LAB_CBX_H
#define FLAG_LAB_CBX_H

#include <QWidget>
#include <QPushButton>
#include <QJsonObject>
#include <QLabel>

class Flag_Lab_Cbx : public QWidget
{
    Q_OBJECT

public:
    explicit Flag_Lab_Cbx(const QJsonObject &flagDetails, QWidget *parent = nullptr);
    ~Flag_Lab_Cbx() override { qDebug() << "[Flag_Lab_Cbx] ~Flag_Lab_Cbx()"; }

signals:
    void optionSelected(const QString &option);

private:
    void setupControlLayout(const QJsonObject &flagDetails);
    QString styleForButton(bool selected);

    QList<QPushButton*> buttons;
};

#endif // FLAG_LAB_CBX_H
